<template>
  <div>
    <div class="text-center title">
      <slot v-if="$slots.title" name="title"></slot>
      <h2 v-else>{{ title }}</h2>
    </div>
    <div class="mb-12">
      <slot name="subtitle"></slot>
    </div>

    <div>
      <slot></slot>
    </div>
  </div>
</template>

<script lang="ts">
import Vue from 'vue'
export default Vue.extend({
  props: {
    title: {
      type: String,
      default: '',
    },
  },
})
</script>

<style lang="scss" scoped>
.title {
  font-size: 40px;
  line-height: 46px;
  @apply text-index-title;
}
</style>
